{template "member","header"}

<style type="text/css">
.loading{background:url("{IMG_PATH2}progressbar.gif") repeat-x;width:90%;height:20px;margin:5px auto;}
.heardimg{margin:10px auto;}
#preview{z-index:99999;width:120px;height:120px;margin:0 auto;top:0;}
#preview img{width:120px;height:120px;}
#idsubmit{display:block;position:absolute;left:50%;margin-left:-60px;top:70px;margin-top:-21px;height:42px;line-height:42px;width:120px;background:none;border:1px solid #e6e6e6;font-size:15px;text-align:center;color:#666;}
#imageform{position:relative;min-height:120px;padding:20px 0;}
</style>

<!-- header -->
<header class="header bg2 clearfix">
	<h3><a href="{get_ref(MEMBER_PATH . '&a=info')}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">头像设置</span>
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main">
	<div class="h_20"></div>
	<div id="preview"><img src="{$info[thumb]}"></div>
	<form action="" id="imageform" enctype="multipart/form-data" method="post" enctype="multipart/form-data">
		<input type="file" class="fileImg" value="上传图片" name="userthumb" id="photoimg">
		<input type="submit" class="btnSubmitSave" id="idsubmit" name="dosubmit" value="上 传 图 片">
	</form>
</main>
<!-- / main -->
<div class="h_48"></div>

<script type="text/javascript">
$(function(){
	//编辑头像
	$('#photoimg').change(function(){
		$('#idsubmit').trigger('click');
	});
});
</script>

{template "member","footer"}